<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
		<table class="tablebox">
					<thead class="table-header">
					<tr id="dataHeadTr">
						<th class="tc">序号</th>
						<th id="code" ><span></span>代码</th>
						<th id="stringValue"><span></span>值</th>
						<th    id="enable" ><span></span>是否可用</th>
						<th class="tc">操作</th>
					</tr>
				</thead>
			<tbody class="openable-tbody">
			<c:forEach var="item" items="${listCode}" varStatus="status">
			<tr class="<c:choose><c:when test="${status.count%2==0 }">odd</c:when><c:otherwise>even</c:otherwise></c:choose>">
			<td class="first tc">${status.count}</td>
			<td>${item.code}</td>
			<td>${item.stringValue}</td>
			<td>
			<c:if test="${!item.enable}">
			<span class="bullet bullet-red"></span>
			</c:if>
			<c:if test="${item.enable}">
			<span class="bullet bullet-green"></span>
			</c:if>
			</td>
			<td class="tc">		
		<a class="button white" href="#" onclick="deleteCode('${typeId}','${item.id}');"><span class="icon_single cancel"></span></a>
			<a class="button white" href="#" onclick="addCode('${typeId}','${item.id}');"><span class="icon_single edit"></span></a>
				 
				 
				 </td>
			</tr>
			</c:forEach>
		</tbody>
		<input type="hidden" id="stypeId" value="${typeId}"/>
     </table>